package com.nulldev.util.web.YouTubeExtractor.signatures;

import com.nulldev.util.VariableAPI.MathUtil;
import com.nulldev.util.data.Variables;

public class ExtractedSignatureData {
	private final String code;
	private final String function, functionName;

	public ExtractedSignatureData(final String code, final String function, final String functionName) {
		this.code = Variables.requireNonNullObject(code, "code");
		this.function = Variables.requireNonNullObject(function, "function");
		this.functionName = Variables.requireNonNullObject(functionName, "functionName");
	}

	public String getCode() {
		return this.code;
	}

	public String getFunctionCode() {
		return this.function;
	}

	public String getFunctionName() {
		return this.functionName;
	}

	@Override
	public String toString() {
		return "ExtractedSignatureData[hash=" + MathUtil.toHex(super.hashCode()) + ",funcName=" + this.functionName + "]";
	}
}
